package com.cq.hd.task.web.job;

import com.cq.hd.order.api.TbOrderApi;
import com.cq.hd.order.api.TbOrderSettleBillApi;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 拼团任务
 *
 * @author much
 * @since 2024/04/30 23:23
 */
@Component
@Slf4j
public class GroupBuyOrderTask {

    @Resource
    private TbOrderApi orderApi;

    /**
     * 拼团超时任务
     */
    @XxlJob("scanExpiredGroupBuyOrders")
    public void scanExpiredGroupBuyOrders() {
        log.info("拼团超时处理=====>开始");
        orderApi.scanExpiredGroupBuyOrders();
        log.info("拼团超时处理=====>结束");
    }

}
